package com.itheima.day11.bytestream.test1;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        // 创建字节输出流对象 ---- 告诉虚拟机我要往那个文件写数据了
        /*File file = new File("D:\\aheima\\JavaSE加强\\aaa\\ttt.txt");
        FileOutputStream fos = new FileOutputStream(file);*/
        FileOutputStream fos = new FileOutputStream("D:\\aheima\\JavaSE加强\\aaa\\ttt.txt");

        // 写数据
        fos.write(979999999);
        fos.write(97);

        // 释放资源
        fos.close();
    }
}
